package com.ychong.ychongwidget.ui

import android.os.Build
import android.os.Bundle
import androidx.annotation.RequiresApi
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import com.bumptech.glide.Glide
import com.ychong.ychongwidget.R
import com.ychong.ychongwidget.databinding.ActivityYchZoomImageViewBinding

class YCHZoomImageViewActivity:AppCompatActivity() {
    private var binding:ActivityYchZoomImageViewBinding? = null
    private val imgPath = "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201805%2F26%2F20180526231242_wChzX.thumb.700_0.jpeg&refer=http%3A%2F%2Fb-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1619599030&t=797374048fd554c9831c669771c5c053"
    @RequiresApi(Build.VERSION_CODES.LOLLIPOP)
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = DataBindingUtil.setContentView(this, R.layout.activity_ych_zoom_image_view)

        Glide.with(this).load(imgPath).into(binding!!.previewIv)
    }
}